added hashing and salting to login