Saves username and password locally.