I am making a login form using Meteor 1.4 and react 15. My aim is to redirect user after login. Currently when user is logged in, the page does not redirect. However, You can no longer access login or register pages when logged in which is expected. 

```
import React from 'react';
import { NavLink, Redirect } from 'react-router-dom';
import { Accounts } from 'meteor/accounts-base';
import { Meteor } from 'meteor/meteor';

export default class Header extends React.Component {
    constructor(){
        super()
        this.forceUpdate = this.forceUpdate.bind(this)
    }
    onSubmit(e){
        e.preventDefault();
        let el = $(e.target);

        let email = el.find('#email').val();
        let password = el.find('#password').val();
        let confirmPassword = el.find('#confirmPassword').val();
        // Login user
        Meteor.loginWithPassword(email, password, function(err){
            if(err){
                alert(err.reason);
            } else {
                //if logged in
                alert('Successfully logged in');
                this.forceUpdate();
            }
        });
    }
    render() {
        //if user is logged in => this part works!
        if(Meteor.user()){
            return <Redirect to='/' />;
        }else 
        return (
        <LoginForm />
        ) 
    }
}

```

The login code works, the only issue is I want the component to rerender when form is submitted, i can only do that using forceUpdate which spits out this error:
The routing is in react router 4 and not meteor's Flow-router

```
Exception in delivering result of invoking 'login': TypeError: this.forceUpdate is not a function

```