Updated routes and AppController

Fixed lougout routes and logout redirecting.