Adding isValid to form class