set login property before rendering.