added login ajax, it's working, needs refinement, combine ajax scripts to one file