updated login and register interactions