Added @username instance variable instead of using @user.name when needed