Fixing redirect on sign in