Temporary fix for console error caused due to accessing login form after logging in