Correct UID check

instead of isset, use of not empty
as uid is 0 for not logged in user.
logout img option fixes
Customized permissions