Require login when view file