Added logout in controller