fix login logout view