I developed a Custom Form and at the form workflow I sent an email to the director to approve or reject user's request via link that opens the Director view of the form
The form have 4 views: Employee, Director, IT and Access Denied View
Now when the director receive the email and open the link, the SharePoint asks for her username and password at the active directory.
I Wanna validated if the interned username is equal to the value of the field (Director username) of the form. If so, I wanna open the view and if NOT I wanna open anther view (Access Denied View).
How to do so ?