fixed updating of credentials to server