Edit function checkuser