Staff login

Make a scope for active appointments. It is being used at several places.