added login and logout functionality, updated registration page