adding logic to sign in as or log in for aplication views.