Updated login method and redirects