password hash functionality

password gets hashed with salt upon user registration and reset password