Clean up the profile edit button checking.