added salted password encryption for login authentication