fix for login and showing homepage stats