Fix for when login module is None