fixed if statements in profile.html.erb