Implements error handling in sign up module.