updated: fixed alert meesage when submitting