Adding code to get all required fields of an user