function getUser() {
return (dispatch) => {
axios.get('/login').then(data => {
dispatch({type: LOGIN, payload: data.data.login});
dispatch({type: name, payload: data.data.name});
});
.catch(e => console.log(e));
}
}