Issue/606 undefined index on login