Fixing registration and adding in login/logout buttons