Added the function to redirect to the login page at startup