Changes for encapsulate login to properties.