Resetting the default credentials and generating a token