Some javascript validation working..redirect works