Made the login and logout buttons work

Also register adds users to database after clicking