Updated code changes handle login into app

Updated code changes handle login into app