added redirects for login validation