Dependency Injection for angularjs html output
added linebreak filters
Authenticate method