Toggling door and light returns string information rather than redirecting to homepage.