add working login and register