Added cheap JS alerts for input errors.