Redirect back to previous view if not authorized