begins model login procedure