a working sign-in method