Added ajax preloader, fixed js validation