user is redirected to previous url after signing in