Fix registration email and username validation.