Added first logic for login (not tested & not finished)

Change-Id: I361bc163fba37ff1448dc50ae74fa3c26225ef36