Refactoring the user profile functionality. Still a lot of work to do
Adding the username to the local storage in the register