updated validate form function