Changing all ajax request to POST in order to pass username and password through them