adding support for differentiating pre-login and post-login methods