Error functionality for registration