Custom authentication for allowing inactive users to login