created password hashing and token generating