changed #{user} to #{username}