added password hashing and storage to user registration