Login triggers redirection to home() function on Router.js