Making local login dependent of the debug mode setting instead