Store credentials to browser localStorage