modified login and userinteraction for debugging