encryption is done for user password and changed post login method