logging in application controller