Fixing redirection logic on sign in/out/up and normal pages with sign in form.