login and register without new api