Added javascript in signup form for direct validation.