updated login and register