Some more changes

Added logout option. Does not work without a logout page