added login directive