delete function checkuser