Cleaned up the code a little. Added some more functionality to the login and registration pages.