Fixed local signup. Added check to sign in.