Fix the logout problem, now logout will return to the entrance view