Added logout handling & application start authentication