login now redirects to previous page