added salting and hashing to login