working on fixing the before filter to authenticate