Added the link to the login button. And made some minor changes that should restore the loggin information to the database.