post to login url instead of register