added check for confirmation in sign in;