Fixed NotificationsCtrl.js validation