adding user details route and tests