moving around elements and checking for validation