Added User validations and password encryption