added validations to user modal