Create function checkUserExist