Catch 401 error and display login form