added password hashing method to user