Login procedure implementation