adding validations on users and displaying errors