Creating applogin correctly.