Working registration and login using hashed and salted passwords.