make login button dynamic with react