Make sure user is set before using it.