Made changes to encrypt the password before storing to db