Added serverside jquery, fixed validation