Commented out @team.user.username to try and correct error on heroku, as stated in the logs.