Fix bug with adding new credential