Removing debugs expressions, correct authentication