Format credentials