validation for users and password encryption.
not my changes
resolved conflict in views