fix invalid date error and fix auth required error