cleaned up style; storing token in local storage