fixed getCourtDetails
added getId from username