Nice URL

I created a plugin which is a personal form for every users on my site, which is publicly accessible for visitors.

The pages are created based on guid /form/guid, using get_input(guid)

But I'd like the url to be be /form/username.

How to do that ?