Connect sign up form and add error handling