Changed working of error toast if registration email missing