adding error page when inserting same date