fixed erros with date field and updated css for error messages