added password hashing functionality for secure passwords

functions verifyPassword and registerUser use this