Change function require_login