implementing simpleLogin/auth