Add comment to function checkUser