Added checkuser function