modify authentication logic