Make errors and success messages appear correctly for sensor registration