Router go to required page the go back again alone in angular 1 meteor

Hi
the site that I created does login in success but the router it doesn’t go to required page, it go then back reload login page directly(but it login without transfer to another page ). I don’t know what is the problem :confused:
there is a Students collection and I inserted the data of collection from mongo console and I createed accounts for all students that are existing in collection in server side . Students can only login to system using student number as username and Identification Number as password.

login.js
class Login {
constructor($scope, $reactive, $state) {
‘ngInject’;

this.$state = $state;

$reactive(this).attach($scope);

this.student = {
student_number: ‘’,
tc: ‘’
};

this.error = ‘’;
}

login() {
Meteor.loginWithPassword(this.student.student_number, this.student.tc,
this.$bindToContext((err) => {
if (err) {
this.error = err;
} else {
this.$state.go(‘layout’);
}
})
);
}
}

layout.js
lass Layout {
constructor($scope, $reactive, $state) {
‘ngInject’;

this.$state = $state;

$reactive(this).attach($scope);
}
}

the link of the code here

anyone can help me?
thanks