Handle signup failures better

Expanded the onfailure method to check for all error cases, so now it catches all connection failures