Login class includes hashing function