added some error notifications to register