added allert and validate email