changed hashing library, authorization now works neatly