Implementing user class and hashing passwords