Trying to fix AJAX...
Basic following stuff
authentication