Added authentication and example resource controller