Add server side error handling

Add directive for serverside validation
Merge pull request #262 from lingalamadhukar/notificationerrors

Add server side error handling