A working sign_in method