Adds validation and error handling to signup form