added more validations for user
generated profile controller