use angular resource instead of angular http request, added php authentication files