fixed login in debug mode: