added sweet alerts to validation