fixed validation of user.