Added errors to the registration process