Add first version of login procedure