no effect on login from doing the same thing and initialising from main but may have an effect on other pages