Split user edit in seperate templates.
Seperate username + password edit.
Style edit form.
Link back.
Extract username and password form.
Extract forms package.
Dewire if/else in user updateUsername.
Store user id in session.
DRY update user / password actions.