Added login directive.