tidy up lint and get token from login