logging in app method