(BY: veer) updating index function of Users Controller