Added validation of usernames.