fixes login and the redirect