Jquery for create page working, failing validation