implemented validation in analysis page; fixed glitch where date strings wouldn't evaluate due to line breaks