Added validation for username, empty usernames are now not allowed.