Make the calling of the pre-method check_user_login more universal