added login screen and correct redirects