added getCategories
added userDetails