added conditionals so users not logged in won't nest login view partials by jQuery .append actions