Fixed problem where username wasn't saved correctly