More sensible handling of registration and sign-in failures