add logout and registration