Updated index.erb page and conditional if-statement to show profile info only when user has logged in