changed getUserID to return id