Working on an ajax form to authenticate