Refactor isValid
Add jQuery mobile images