Added basic authentication in angularjs with heades