validation in notifications model