correctly set username when user register with mail only