The student pilot tried three times to open the cockpit door