added checks for userform values