now able to start a thread, also keep logged in if authorised