Fixed bug in authentication code. Non-active staff members may
no longer log in