precompiled all js and css and changed redirect for fail