set credentials to user