Create proper error messages using alert and angular directives