Added proper redirects after login page