Fixed a semicolon error. Added logout f'n