{% if user.is_authenticated and user.userprofile.profile_type == "Patient" %}
{% block content %}
{% endblock %}
{% else %}
You are not logged in as a Patient
Log In {% endif %}{% load static %}
You are not logged in as a Patient
Log In {% endif %}