New/ Edit User window GUI – best practice

I'm working on a web-page there the user create/ edit his user profile.
Each user can have these fields:
- Username
- Password
- Repeat Password
- Email
- First name
- Last name
- Job title
- User description
- User type (drop-down selection)
- Profile pic

My question: Is there any guidelines or best-practice for developing this form (new/edit user)?
- Does there some order for these fields (which field should be first and which last)
- Can/ should I emit any of these fields?
- Does it should be a pop-up dialog or in page form?
- Should I combine (group) some fields with others?
- etc..