Added user input validation to email and text alerts