added flash notice to validation