Implementation of login interface logic