added the before filter ensure logged in methods