function snapshotForm (props) {
    renderer.render(<LoginForm {...props} />)
    const tree = renderer.getRenderOutput()
    expect(tree).toMatchSnapshot()
  }
### snapshotForm

Depending on the state, this function validates that the rendered
component has the correct data