log in page redirects after log in is validated