Add login logical module

Change-Id: Ieceb497bc2b9d709a0ccc43b536ad785c40b567c