Added some basic login functionality.