Adding function to get users