added logout button and example of ajax requisition