fixed problem with redirect on login printing useless information