javascript validations started