added login logic and finalized both login and create user activites