Still working on getting login thing working

Made a post on stack overflow:
http://stackoverflow.com/questions/19373435/my-ajax-script-will-run-once-correctly-but-it-wont-run-again