A basic client-side authentication in react with redux