Added error handling for signup form