Adding register and login directives