Fixed loop

Fixed Form Validation