added a flash message to creating a profile
created an alerts service
added unit test for alert directive [Finishes: #79463878]