Sure. It just doesn't seem like this should work - you're checking if an email equals a username which should always fail even on the same user.

Either change the code to be right (use `user.username` rather than `user.email`), or change the variable name `instructor_username` to accurately represent what it is, ie `instructor_email`.