remove docuemnt.write junk from before
debug on ajax login