change login url to better core function