Added login and logout functions to com_account