fix document content type + new redirection after sign in