created loginmenu

also moved ajax stuff to separate file.