fix small problem

add login_required function to log.views