added user model validation