added a method for getting user details