error in $("#deadline").val() fixed