add getbyname for user class