login and activate procedure