Added logic for user registration and login.

Still need to add password hashing.