fixed validation bug, stopped page refresh