Added login page, login handling improved (redirects)