Added date checking on create assignment

now correctly checks if the date is of the correct format and isn't just
garbage string