Fixed Logout Function

Logout was simply returning to login screen but not really logging the
user out.