logout function
Merge branch 'develop-sergio'