added password validations
added conditional password validations
added password encryption