Added password hashing function