logout and login works, registration redirection still buggy