Checking session's attribute for login's type