Added register error returns