added user and logged in specific ruby code