Modified before filter to allow login