[fix] fixed validation when register an user

Code Style: empty line can be removed.