login procedure updated