login and register reflected on server