added alert directive.  Added basic UI validation.