Added functionality to reset password. Upon resetting, password is encrypted.