fixed bug for user name logged in in logout view