Raise 400 status when there is an error while registering.