Fixed wrong logic while displaying user info in header