added function getUserDetails