[fix] fixed validation when register a user