Login to each individual domain

Login functionality for each individual domain. In Controller and base
controller