Completed login form and fixed redirects not working