Logout function now working, deleting pictures is also complete.