Added basic registration/login functionality.