Add checking to sign in/off function.